package com.example.pceb.service;

import com.example.pceb.entity.User;
import com.example.pceb.result.Result;
import com.example.pceb.VO.LoginVO;


import java.util.List;

public interface UserService {
    Result<List<User>> selectAllUser();

    Result<String> loginByUserName(String username, String password,String identity);
    Result<String> loginByToken(String token);

    Result<String> register(LoginVO loginVO);

    Result<Object> getUserInfo(String token);

    Result<Object> updateUserInfo(String token, Object userData);

    Result<String> uploadAvatar(String token, String identity, String username, org.springframework.web.multipart.MultipartFile file);

    int countAllUsers();

    java.util.List<java.util.Map<String, Object>> countUserByIdentity();
}
